#include "stdafx.h"

#include "Plane.h"

bool Plane::Inside(const Vector3 &point) const
{
	float result = D3DXPlaneDotCoord(this, &point);

	return (result >= 0.0f);
}

bool Plane::Inside(const Vector3 &point, const float radius) const
{
	float distance;

	distance = D3DXPlaneDotCoord(this, &point);

	return (distance >= -radius);
}